package bean;

public class Node {
	private Node nextNode;
	private int index;
	private float dis;
	
	public float getDis() {
		return dis;
	}

	public Node(int i,float dis){
		this.index=i;
		this.dis=dis;
	}
	
	public int index(){
		return this.index;
	}
	
	
	public void next(Node n){
		this.nextNode=n;
	}
	
	public Node next(){
		return this.nextNode;
	}
	
	
	
}
